window.onload=function(){
	// 基于准备好的dom，初始化echarts图表
    
var knn = echarts.init(document.getElementById('knn')); //基因blast分析的计算结果图
var option = {
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['A','T','C','G']
    },
    toolbox: {
        show : true,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
            restore : {show: true},
            saveAsImage : {show: true}
        }
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : ['位置1','位置2','位置3','位置4','位置5','...','位置222','位置223','位置224']
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'A',
            type:'line',
            stack: '总量',
            data:[0,0.5,0.5,0.5,0.5,'',0.5,0.5,0.5]
        },
        {
            name:'T',
            type:'line',
            stack: '总量',
            data:[0.5, 0,0.5,0.5,0.5,'',0,0.5,0]
        },
        {
            name:'C',
            type:'line',
            stack: '总量',
            data:[0.5,0.5,0,0,0,'',0,0,0]
        },
        {
            name:'G',
            type:'line',
            stack: '总量',
            data:[0,0,0,0,0,'',0.5,0,0.5]
        },
    ]
};
knn.setOption(option);



};


